package pkev.xgrapher.component.models;

import pkev.xgrapher.common.entity.XFlowGraphics;

import java.awt.*;
import java.util.HashMap;
import java.util.Map;

public abstract class AbstractGrapherModel {
    private Map<String, String> params = null;

    abstract public void draw(XFlowGraphics g);
    abstract public int getLayoutIndex();

    public AbstractGrapherModel() {
    }

    public Map<String, String> getParams() {
        if (params == null) {
            params = new HashMap<String, String>();
        }
        return params;
    }

    public void setParams(Map<String, String> params) {
        this.params = params;
    }
}
